﻿package com.PlantVsZombies.thread;

public class BaseThread extends Thread {
	private ThreadPool pool; // 所在的线程池
	private Runnable target; // 线程的任务
	private boolean isRun; // 是否处于运行状态

	public BaseThread() {
		super();
	}

	public BaseThread(Runnable target) {
		super();
		this.target = target;
	}

	public BaseThread(ThreadPool pool, Runnable target, boolean isRun) {
		super();
		this.pool = pool;
		this.target = target;
		this.isRun = isRun;
	}

	public BaseThread(ThreadPool pool, Runnable target) {
		super();
		this.pool = pool;
		this.target = target;
	}

	public ThreadPool getPool() {
		return pool;
	}

	public void setPool(ThreadPool pool) {
		this.pool = pool;
	}

	public Runnable getTarget() {
		return target;
	}

	public void setTarget(Runnable target) {
		this.target = target;
	}

	public boolean isRun() {
		return isRun;
	}

	public void setRun(boolean isRun) {
		this.isRun = isRun;
	}

	
}
